package gov.pbc.nn.kjgl.entity;

import gov.pbc.nn.core.entity.BaseEntity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.bstek.dorado.annotation.PropertyDef;

/**
 * 机房进入申请表
 * 
 * @author louis
 * 
 */
@Entity
@Table(name = "T_COMPUTER_ROOM_APPLY_ENTRY")
public class ComputerRoomApplyEntry extends BaseEntity {

	private static final long serialVersionUID = 4538745731355658593L;

	@PropertyDef(label = "标题")
	@Column(name = "TITLE_", length = 200)
	private String title;

	@PropertyDef(label = "申请起始时间")
	@Column(name = "APPLY_START_DATE_")
	private Date applyStartDate;

	@PropertyDef(label = "申请结束时间")
	@Column(name = "APPLY_END_DATE_")
	private Date applyEndDate;

	@PropertyDef(label = "申请时间")
	@Column(name = "APPLY_DATE_")
	private Date applyDate;

	@PropertyDef(label = "申请部门ID")
	@Column(name = "DEPT_ID_", length = 60)
	private String deptId;

	@PropertyDef(label = "申请部门")
	@Column(name = "DEPT_NAME_", length = 200)
	private String deptName;

	@PropertyDef(label = "申请人")
	@Column(name = "APPLY_USER_", length = 60)
	private String applyUser;

	@PropertyDef(label = "申请人")
	@Column(name = "APPLY_USER_NAME_", length = 100)
	private String applyUserName;

	@PropertyDef(label = "进入类别")
	@Column(name = "ENTRY_TYPE_ID_", length = 60)
	private String entryTypeId;

	@PropertyDef(label = "进入类别")
	@Column(name = "ENTRY_TYPE_NAME_", length = 100)
	private String entryTypeName;

	@PropertyDef(label = "机房ID")
	@Column(name = "CR_ID_", length = 60)
	private String crId;

	@PropertyDef(label = "机房")
	@Column(name = "CR_NAME_", length = 120)
	private String crName;

	@PropertyDef(label = "进入区域ID")
	@Column(name = "AREA_ID_", length = 400)
	private String areaId;

	@PropertyDef(label = "进入区域")
	@Column(name = "AREA_NAME_", length = 400)
	private String areaName;

	@PropertyDef(label = "拟进入机房人员")
	@Column(name = "ENTRY_USERS_", length = 768)
	private String entryUsers;

	@PropertyDef(label = "进入机房事由")
	@Column(name = "ENTRY_REASON_", length = 768)
	private String entryReason;

	@PropertyDef(label = "申请部门意见")
	@Column(name = "APPLY_DEPT_OPINION_", length = 768)
	private String applyDeptOpinion;

	@PropertyDef(label = "科技处审批意见")
	@Column(name = "OPINION_", length = 768)
	private String opinion;

	@PropertyDef(label = "进入机房内部人员数")
	@Column(name = "ENTRY_COUNT_")
	private int entryCount;

	@PropertyDef(label = "进入机房外部人员数")
	@Column(name = "ENTRY_OUT_COUNT_")
	private int entryOutCount;
	@Lob
	@PropertyDef(label = "申请人签字")
	@Column(name = "SIGN_IMG_")
	private byte[] signImg;

	@PropertyDef(label = "外来人签字")
	@Column(name = "SIGN_IMG_OUT_")
	private byte[] signImgOut;

	@Lob
	@PropertyDef(label = "操作详细记录")
	@Column(name = "OPER_REMARK_", length = 768)
	private String operRemark;

	@Column(name = "KEZHANG_", length = 20)
	@PropertyDef(label = "审核科长", description = "审核科长:审核科长")
	private String kezhang;

	@Column(name = "KEZHANG_ID_")
	@PropertyDef(label = "审核科长id", description = "审核科长id:审核科长id")
	private String kezhangId;

	// 0 初始，10处理中，20撤销：30完成
	@Column(name = "STATE_")
	@PropertyDef(label = "审核状态", description = "审核状态:审核状态")
	private int state;
	
	
	@Column(name = "CHUZHANG_", length = 20)
	@PropertyDef(label = "审核处长", description = "审核处长:审核处长")
	private String chuzhang;

	@Column(name = "CHUZHANG_ID_")
	@PropertyDef(label = "审核处长id", description = "审核处长id:审核处长id")
	private String chuzhangId;


	public String getChuzhang() {
		return chuzhang;
	}

	public void setChuzhang(String chuzhang) {
		this.chuzhang = chuzhang;
	}

	public String getChuzhangId() {
		return chuzhangId;
	}

	public void setChuzhangId(String chuzhangId) {
		this.chuzhangId = chuzhangId;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getKezhang() {
		return kezhang;
	}

	public void setKezhang(String kezhang) {
		this.kezhang = kezhang;
	}

	public String getKezhangId() {
		return kezhangId;
	}

	public void setKezhangId(String kezhangId) {
		this.kezhangId = kezhangId;
	}

	public Date getApplyStartDate() {
		return applyStartDate;
	}

	public void setApplyStartDate(Date applyStartDate) {
		this.applyStartDate = applyStartDate;
	}

	public Date getApplyEndDate() {
		return applyEndDate;
	}

	public void setApplyEndDate(Date applyEndDate) {
		this.applyEndDate = applyEndDate;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getApplyUser() {
		return applyUser;
	}

	public void setApplyUser(String applyUser) {
		this.applyUser = applyUser;
	}

	public String getApplyUserName() {
		return applyUserName;
	}

	public void setApplyUserName(String applyUserName) {
		this.applyUserName = applyUserName;
	}

	public String getEntryTypeId() {
		return entryTypeId;
	}

	public void setEntryTypeId(String entryTypeId) {
		this.entryTypeId = entryTypeId;
	}

	public String getEntryTypeName() {
		return entryTypeName;
	}

	public void setEntryTypeName(String entryTypeName) {
		this.entryTypeName = entryTypeName;
	}

	public String getCrId() {
		return crId;
	}

	public void setCrId(String crId) {
		this.crId = crId;
	}

	public String getCrName() {
		return crName;
	}

	public void setCrName(String crName) {
		this.crName = crName;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getEntryUsers() {
		return entryUsers;
	}

	public void setEntryUsers(String entryUsers) {
		this.entryUsers = entryUsers;
	}

	public String getEntryReason() {
		return entryReason;
	}

	public void setEntryReason(String entryReason) {
		this.entryReason = entryReason;
	}

	public String getApplyDeptOpinion() {
		return applyDeptOpinion;
	}

	public void setApplyDeptOpinion(String applyDeptOpinion) {
		this.applyDeptOpinion = applyDeptOpinion;
	}

	public String getOpinion() {
		return opinion;
	}

	public void setOpinion(String opinion) {
		this.opinion = opinion;
	}

	public int getEntryCount() {
		return entryCount;
	}

	public void setEntryCount(int entryCount) {
		this.entryCount = entryCount;
	}

	public int getEntryOutCount() {
		return entryOutCount;
	}

	public void setEntryOutCount(int entryOutCount) {
		this.entryOutCount = entryOutCount;
	}

	public byte[] getSignImg() {
		return signImg;
	}

	public void setSignImg(byte[] signImg) {
		this.signImg = signImg;
	}

	public byte[] getSignImgOut() {
		return signImgOut;
	}

	public void setSignImgOut(byte[] signImgOut) {
		this.signImgOut = signImgOut;
	}

	public String getOperRemark() {
		return operRemark;
	}

	public void setOperRemark(String operRemark) {
		this.operRemark = operRemark;
	}

}
